# message = input("tell me sth, and i will repeat it back to you: ")
# print(message)
# name = input("please enter your name: ")
# print("hello " + name.title() + "!")
# prompt = "if you telll us who you are, we can personalize th messages you see."
# prompt += "\nwhat is your first name? "
# name = input(prompt)
# print("\nhello, " + name + "!")
# height = input("how tall are you, in inches? ")
# height = int(height)
# if height >= 36:
	# print("\nyou 're tall enough to ride! ")
# else:
	# print("\nyou'll be able to ride when you're a little older.")
# current_number = 1
# while current_number <= 5:
	# print(current_number)
	# current_number += 1
# prompt = "\ntell me sth, and i'll repeat it back to you: "
# prompt += "\nenter 'quit' to end the program."
# message = ""
# while message != "quit":
    # message = input(prompt)
    # if message != "quit":
        # print(message)
# prompt = "\ntell me sth, and i'll repeat it back to you: "
# prompt += "\nenter 'quit' to end the program."
# active = True
# while active:
    # message = input(prompt)
    # if message == "quit":
        # active = False
    # else:
        # print(message)
# prompt = "\nplease enter the name of a city you have visited: "
# prompt += "\n(enter 'quit' when you are finished.)"
# while True:
    # city = input(prompt)
    # if city == "quit":
        # break
    # else:
        # print("i'd like to go to " + city.title() + "!")
# unconfirmed_users = ["alice", "brian", "candace"]
# confirmed_users = []
#这个例子和后面的那个例子的while后面语句的情况需要多练习，才能掌握应该
# while unconfirmed_users:
    # verifying = unconfirmed_users.pop()
    # print("\nverifying user: " + verifying.title())
    # confirmed_users.append(verifying)
# print("\nthe following users have been confirmed: ")
# for confirmed_user in confirmed_users:
    # print(confirmed_user.title())
# pets = ["dog", "cats", "dogs", "ducks", "cats"]
# while "cats" in pets:
    # pets.remove("cats")
# print(pets)
responses = {}
polling_active = True
while polling_active:
    name = input("\nwhat's your name? ")
    response = input("\nwhich mountain would you like to climb? ")
    responses[name] = response
    repeat = input("\nwould you like to let another person respond? ")
    if repeat == "no":
        polling_active = False
print("\n---poll results---")
for name,response in responses.items():
    print(name + " would like to climb " + response)
